package com.colorful.insuranceproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by handsome-Bob on 2017/9/6.
 */

public class BankInfo implements Parcelable{

    private String bankCarNumber;//" : "银行卡号",
    private String bankName;//" : "银行名字",
    private String bankAddress;//":1, //1为储蓄卡，2为信用卡
    private String bankCardAuth;//":1 //该卡是否已认证，1认证 其它数值未认证
    private String bankPhone;

    public BankInfo() {
    }

    public BankInfo(String bankCarNumber, String bankName, String bankAddress, String bankCardAuth, String bankPhone) {
        this.bankCarNumber = bankCarNumber;
        this.bankName = bankName;
        this.bankAddress = bankAddress;
        this.bankCardAuth = bankCardAuth;
        this.bankPhone = bankPhone;
    }

    public String getBankCarNumber() {
        return bankCarNumber;
    }

    public void setBankCarNumber(String bankCarNumber) {
        this.bankCarNumber = bankCarNumber;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankAddress() {
        return bankAddress;
    }

    public void setBankAddress(String bankAddress) {
        this.bankAddress = bankAddress;
    }

    public String getBankCardAuth() {
        return bankCardAuth;
    }

    public void setBankCardAuth(String bankCardAuth) {
        this.bankCardAuth = bankCardAuth;
    }

    public String getBankPhone() {
        return bankPhone;
    }

    public void setBankPhone(String bankPhone) {
        this.bankPhone = bankPhone;
    }

    @Override
    public String toString() {
        return "BankInfo{" +
                "bankCarNumber='" + bankCarNumber + '\'' +
                ", bankName='" + bankName + '\'' +
                ", bankAddress='" + bankAddress + '\'' +
                ", bankCardAuth='" + bankCardAuth + '\'' +
                ", bankPhone='" + bankPhone + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.bankCarNumber);
        dest.writeString(this.bankName);
        dest.writeString(this.bankAddress);
        dest.writeString(this.bankCardAuth);
        dest.writeString(this.bankPhone);
    }

    protected BankInfo(Parcel in) {
        this.bankCarNumber = in.readString();
        this.bankName = in.readString();
        this.bankAddress = in.readString();
        this.bankCardAuth = in.readString();
        this.bankPhone = in.readString();
    }

    public static final Creator<BankInfo> CREATOR = new Creator<BankInfo>() {
        @Override
        public BankInfo createFromParcel(Parcel source) {
            return new BankInfo(source);
        }

        @Override
        public BankInfo[] newArray(int size) {
            return new BankInfo[size];
        }
    };
}
